<%@page import="java.util.List"%>
<%@page import="com.wanmait.travel.vo.Userinfo"%>
<%@page import="java.util.ArrayList"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
   <% String path=request.getServletContext().getContextPath();%>
<!DOCTYPE html>
<html>	
<head>
<title>Login</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<script type="application/x-javascript"> addEventListener("load", function() { setTimeout(hideURLbar, 0); }, false);
    function hideURLbar(){ window.scrollTo(0,1); } </script>
<link href="/Travel/css/style_a.css?11" rel='stylesheet' type='text/css' />

</head>
<body>
<script>
$(document).ready(function(c) {
	$('.close').on('click', function(c){
		$('.login-form').fadeOut('slow', function(c){
	  		$('.login-form').remove();
		});
	});	  
});

</script>
 <!--SIGN UP-->
 <h1>请您登录</h1>
<div class="login-form">
		<div class="head-info">
		<a href="<%=path%>/userinfo/forgetpassword.jsp">忘记密码？</a>
		</div>
			<div class="clear"> </div>
	<div class="avtar">
		<img src="/Travel/image/11.png"/>
	</div>
    <%
			String err =request.getParameter("err");
			if(err!=null&&err.equals("1")){
			%>
				<p class="err">对不起，用户名或者密码错误！</p>	
			<%
			}
			%>

			<form action="<%=path %>/UserinfoController?action=login" method="post">
					<input type="text" class="text" name="userName" value="Username" onfocus="this.value = '';" onblur="if (this.value == '') {this.value = 'Username';}" >
						<div class="key">
					<input type="password" name="userPass" value="Password" onfocus="this.value = '';" onblur="if (this.value == '') {this.value = 'Password';}">
						</div>
					<input type="text" name="randcode" value="请输入验证码" onfocus="this.value='';" onblur="if(this.value==''){this.value ='输入验证';}">
					<img src="/Travel/code" onclick="this.src='/Travel/code?'+Math.random()">
			
	<div class="signin">
		<input type="submit" value="登录" onclick="">
	</div>
	</form>
</div>

 <div class="copy-rights">
					<p>Copyright &copy; 2019.Company name All rights reserved- Collect from 万码五组</p>
			</div>

</body>
<script>
	$("#")
	
</script>
</html>

<script src="http://ajax.useso.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>